home *** CD-ROM | disk | FTP | other *** search
/ SGI O2 Out of Box Experience 2.2 / SGI O2 Out of Box Experience 2.2.iso / cgi-bin / nph-startIpanel.cgi < prev    next >
Text File  |  1998-05-26  |  1KB  |  51 lines

  1. #!/bin/sh
  2.  
  3. DISPLAY=:0.0
  4. export DISPLAY
  5.  
  6. # First thing, check to see if we've already started ipanel
  7. #   If so, exit.  If not, continue on.......
  8.  
  9. found=`/sbin/ps -ef | grep "ipanel" | grep -v grep`
  10. if [ -n "$found"  ]; then
  11.         /usr/bin/X11/xconfirm -c -B "OK" -icon progress \
  12.             -font '-*-helvetica-medium-r-narrow--19-*-*-*-p-83-iso8859-1' \
  13.             -t "The Language and Time Zone Tool has already been started." >/dev/null
  14.         exit
  15. fi
  16.  
  17.  
  18. server_protocol=$SERVER_PROTOCOL;
  19. server_software=$SERVER_SOFTWARE;
  20.  
  21. /sbin/echo "$server_protocol 200 OK"
  22. /sbin/echo "Server: $server_software"
  23. /sbin/echo "Content-Type: text/html";
  24. /sbin/echo "Expires: 0\n";
  25.  
  26.  
  27. # Print header
  28. /sbin/echo "<html>\n";
  29. /sbin/echo "<body bgcolor=\"#000000\" text=\"#996688\">\n";
  30. /sbin/echo "<PRE>\n";
  31. /sbin/echo "</PRE>\n";
  32. /sbin/echo "<h2>    Starting Language and Time Zone Tool...</h2>\n";
  33. /sbin/echo "</body>\n";
  34. /sbin/echo "</html>\n";
  35.  
  36.  
  37. # Set the DISPLAY environment variable
  38. DISPLAY=:0.0
  39. export DISPLAY
  40.  
  41.  
  42. # run app in background
  43. `/usr/sbin/ipanel -oobe -system -geometry +220+158>/dev/null`;
  44.  
  45.  
  46. # turn the area black again.
  47. /sbin/echo "<html>\n";
  48. /sbin/echo "<body bgcolor=\"#000000\">\n";
  49. /sbin/echo "</body>\n";
  50. /sbin/echo "</html>\n";
  51.